<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="common/import.jsp" %>

<html>
  <head>
    <title>欢迎使用系统</title>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="bpms,spring3mvc,spring jdbc">
	<meta http-equiv="description" content="">
    <style type="text/css">
		.themeStyle a{ width:9px; height:9px; margin-right:10px; margin-top:5px; float:right; }
		.themeStyle .a1{background-color:blue;}
		.themeStyle .a2{background-color:gray;}
		.themeStyle .a3{background-color:white;}
		
		.cs-skin-on{
			border: 1px solid #FFFFFF;
		}
	</style>
    <script src="${ctx}/resources/js/main.js" type="text/javascript"></script>
  </head>
    <script type="text/javascript">
    	/*var _menus = {"menus":[
			{"menuid":"1","icon":"icon-nav","menuname":"系统管理",
				"menus":[
						{"menuid":"13","menuname":"用户管理","icon":"icon-users","url":"${ctx}/sys/user/toList.do"},
						{"menuid":"14","menuname":"角色管理","icon":"icon-role","url":"${ctx}/sys/role/toList.do"},
						{"menuid":"15","menuname":"权限设置","icon":"icon-set","url":"demo.jsp"},
						{"menuid":"15","menuname":"模块管理","icon":"icon-nav","url":"${ctx}/sys/module/toList.do"},
						{"menuid":"16","menuname":"系统日志","icon":"icon-log","url":"demo.jsp"},
						{"menuid":"17","menuname":"数据字典管理","icon":"icon-nav","url":"demo.jsp"}//,
						//{"menuid":"12","menuname":"疯狂秀才","icon":"icon-add","url":"http://hxling.cnblogs.com"}
					]
			},{"menuid":"2","icon":"icon-nav","menuname":"员工管理",
				"menus":[]
			}
	     ]};*/
	    var _menus = ${userModules};
	     
    	function exit(){
    		$.messager.confirm('确认信息', '确定要退出系统吗?', function(r){
    			if (r){
    				location.href = "${ctx}/doLogout.do";
    			}
    		});
    	}
    	function changePwd(){
    		showWindow("修改密码", "${ctx}/sys/user/toChangePwd.do", 380, 220);
    	}
    	function viewUser(){
    		var userId = ${userId};
    		showWindow("查看用户", "${ctx}/sys/user/toView.do?id=" + userId);
    	}
    </script>
  <body class="easyui-layout">
    <noscript>
       <div style=" position:absolute; z-index:100000; height:2046px;top:0px;left:0px; width:100%; background:white; text-align:center;">
          <img src="${ctx}/resources/images/noscript.gif" alt='抱歉，请开启脚本支持！' />
       </div>
    </noscript>
    <div region="north" split="false" style="height:60px;">
        <div id="top">
        <div class="huanying" >欢迎 <a href="javascript: viewUser();"><span id="lblBra">${loginUser}</span></a> 登陆  | <span id="clock"></span></div>
        <div class="bb">
	       <a id="open_change_password"  href="javascript: changePwd();">修改密码</a>
	       <a id="exitSys" href="javascript: exit();">安全退出</a>
	       <%--<div class="themeStyle">
	          <a class="styleswitch a3" style="CURSOR: pointer" title="白色" rel="metro"></a>
	          <a class="styleswitch a2" style="CURSOR: pointer" title="灰色" rel="gray"></a>
	          <a class="styleswitch a1" style="CURSOR: pointer" title="默认" rel="default"></a>
	       </div>--%>
	       
	       <%--<ul class="ui-skin-nav">
            <li class="li-skinitem" title="默认"><span class="blue" rel="default"></span></li>
			<li class="li-skinitem" title="灰色"><span class="gray" rel="gray"></span></li>
			<li class="li-skinitem" title="白色"><span class="metro" rel="metro"></span></li>
		   </ul>
        --%></div>
        </div>
    </div>
    <div region="west" hide="true" split="true" title="导航菜单" style="width:200px;" id="west">
	    <div id="nav" class="easyui-accordion" fit="true" border="false">
	    </div>
    </div>
    <div id="mainPanle" region="center">
        <div id="tabs" class="easyui-tabs"  fit="true" >
		</div> 
    </div>
    <div region="south" split="false" style="height: 25px;">
        <div class="footer">&copy; xxx个人  版权所有</div>
    </div>
	<div id="mm" class="easyui-menu cs-tab-menu" style="width:150px;display: none;">
		<div id="mm-tabupdate" >刷新</div>
		<div class="menu-sep"></div>
		<div id="mm-tabclose" >关闭</div>
		<div id="mm-tabcloseall" >全部关闭</div>
		<div id="mm-tabcloseother" >除此之外全部关闭</div>
		<div class="menu-sep"></div>
		<div id="mm-tabcloseright" >当前页右侧全部关闭</div>
		<div id="mm-tabcloseleft" >当前页左侧全部关闭</div>
		<div class="menu-sep"></div>
	</div>
  </body>
</html>
